package com.qlu.casualtalk.domain.dto;

import com.qlu.casualtalk.constant.RegexConstant;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Pattern;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserLoginDTO {

    @NotEmpty
    private String accountOrEmailOrPhone;

    @NotEmpty
    @Pattern(regexp = RegexConstant.PASSWORD_REGEX, message = "密码必须为6-16位的字母、数字、下划线或横线组成")
    private String password;
}
